<?php

Route::group(['prefix'=>'admin/freebird'], function() {

    Route::group(['middleware' => 'permission'], function () {
        Route::get('/info/class/index', ['uses' => 'InfoClassController@index']);  //分类信息
        Route::get('/info/class/show_select_menus', ['uses' => 'InfoClassController@classSelectMenus']);  //分类信息
        Route::get('/info/show', ['uses' => 'InfoController@show']);  //详细
        //==========================================用户审核管理============================================================
        Route::get('/store/apply/index', ['uses' => 'StoreUserController@index']);  //分类信息
        Route::get('/store/apply/show', ['uses' => 'StoreUserController@show']);  //分类信息
        //==============================================商家门店管理=============================================================================
        Route::get('/store/index', ['uses' => 'StoreController@index']);  //商家门店
        Route::get('/store/add', ['uses' => 'StoreController@add']);  //商家门店添加
        Route::get('/store/edit', ['uses' => 'StoreController@edit']);  //商家门店 编辑
        Route::get('/store/map', ['uses' => 'StoreController@map']);  //商家地图
        //=======================================================vip支付设置列表===============================================================
        Route::get('/vipshop/index', ['uses' => 'VipShopController@index']);  //vip中心
        Route::get('/vipshop/add', ['uses' => 'VipShopController@add']);  //vip添加
        Route::get('/vipshop/edit', ['uses' => 'VipShopController@edit']);  //vip信息

        //=======================================================客服服务==============================================================
        Route::get('/cs/index', ['uses' => 'CustomerServiceController@index']);  //客服服务
        Route::get('/cs/add', ['uses' => 'CustomerServiceController@add']);  //客服服务
        Route::get('/cs/edit', ['uses' => 'CustomerServiceController@edit']);  //客服服务
        //=======================================================返佣列表===============================================================
        Route::get('/rebate/index', ['uses' => 'RebateLogController@index']);  //返佣列表
        //=======================================================订单管理===============================================================
        Route::get('/info/index', ['uses' => 'InfoController@index']);  //订单列表
        //===================================================订单投诉管理===============================================
        Route::get('/info/complaint/index', ['uses' => 'ComplaintController@index']);  //vip中心
        Route::get('/info/complaint/apply', ['uses' => 'ComplaintController@apply']);  //vip添加
        Route::get('/info/complaint/show', ['uses' => 'ComplaintController@show']);  //vip信息


    });
    Route::group(['middleware' => ['permission','response','transaction']], function () {
        Route::post('/info/class/save', ['uses' => 'InfoClassController@save']);   //分列保存
        Route::post('/info/class/edit', ['uses' => 'InfoClassController@edit']);   //分列编辑
        Route::post('/info/class/del', ['uses' => 'InfoClassController@del']);   //分列删除
        //==========================================用户审核管理============================================================
        Route::post('/store/apply/index', ['uses' => 'StoreUserController@index']);  //审核列表
        Route::post('/store/apply/applytrue', ['uses' => 'StoreUserController@applyTrue']);  //审核通过
        Route::post('/store/apply/applyerror', ['uses' => 'StoreUserController@applyError']);  //审核失败

        //==============================================商家门店管理=============================================================================
        Route::post('/store/index', ['uses' => 'StoreController@index']);  //商家门店
        Route::post('/store/change/status', ['uses' => 'StoreController@changeStatus']);  //商家门店
        Route::post('/store/edit', ['uses' => 'StoreController@edit']);  //商家门店编辑
        Route::post('/store/add', ['uses' => 'StoreController@add']);  //商家门店添加

        //=======================================================消息操作===============================================================
        Route::post('/vipshop/index', ['uses' => 'VipShopController@index']);  //消息中心
        Route::post('/vipshop/add', ['uses' => 'VipShopController@add']);  //消息添加
        Route::post('/vipshop/edit', ['uses' => 'VipShopController@edit']);  //消息信息
        Route::post('/vipshop/del', ['uses' => 'VipShopController@del']);  //消息信息
        Route::post('/vipshop/change/status', ['uses' => 'VipShopController@changeStatus']);  //改变状态数据

        //=======================================================客服服务===============================================================
        Route::post('/cs/index', ['uses' => 'CustomerServiceController@index']);  //消息中心
        Route::post('/cs/add', ['uses' => 'CustomerServiceController@add']);  //消息添加
        Route::post('/cs/edit', ['uses' => 'CustomerServiceController@edit']);  //消息信息
        Route::post('/cs/del', ['uses' => 'CustomerServiceController@del']);  //消息信息
        Route::post('/cs/change/status', ['uses' => 'CustomerServiceController@changeStatus']);  //改变状态数据
        Route::post('/cs/send', ['uses' => 'CustomerServiceController@sendMessage']);  //改变状态数据
        Route::post('/cs/message', ['uses' => 'CustomerServiceController@showMessage']);  //改变状态数据
        //=======================================================返佣列表===============================================================
        Route::post('/rebate/index', ['uses' => 'RebateLogController@index']);  //返佣列表
        //=======================================================订单管理===============================================================
        Route::post('/info/index', ['uses' => 'InfoController@index']);  //订单列表
        Route::post('/info/apply/applytrue', ['uses' => 'InfoController@applyTrue']);  //审核通过
        Route::post('/info/apply/applyerror', ['uses' => 'InfoController@applyError']);  //审核失败

        //===================================================订单投诉管理===============================================
        Route::post('/info/complaint/index', ['uses' => 'ComplaintController@index']);  //vip中心
        Route::post('/info/complaint/apply', ['uses' => 'ComplaintController@apply']);  //vip添加
        Route::post('/info/complaint/show', ['uses' => 'ComplaintController@show']);  //vip信息

    });


});